<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

<f:view contentType="text/html">
<style>
 	.ingresarbutton {
    background: #F2F2F2 url('resources/img/accept.png') no-repeat left;text-align: right;width: 85px;height: 29px;font-family: Arial;
}
.guardarbutton {
    background: #F2F2F2 url('resources/img/save.png') no-repeat left;text-align: right;width: 85px;height: 29px;font-family: Arial;
}
.rentabilidadboton {
    background: #F2F2F2 url('resources/img/RentabFormato.png') no-repeat left;text-align: right;width: 85px;height: 29px;font-family: Arial;
}
.eliminarbutton {
    background: #F2F2F2 url('resources/img/delete.png') no-repeat left;text-align: right;width: 85px;height: 29px;font-family: Arial;
}
.volverbutton {
    background: #F2F2F2 url('resources/img/arrow_left.png') no-repeat left;text-align: right;width: 85px;height: 29px;font-family: Arial;
}
.aperturabutton {
    background: #F2F2F2 url('resources/img/more.png') no-repeat left;
}
.adduserbutton {
    background: #F2F2F2 url('resources/img/user_add.png') no-repeat left;text-align: right;width: 120px;height: 29px;font-family: Arial;
}

.buscarrbutton {
    background: #F2F2F2 url('resources/img/find.png') no-repeat left;text-align: right;width: 80px;height: 29px;font-family: Arial; #0B77B7;
}
.simularbutton {
    background: #F2F2F2 url('resources/img/arrow_refresh.png') no-repeat left;text-align: right;width: 130px;height: 29px;font-family: Arial;
}
.importarxlsbutton {
    background: #F2F2F2 url('resources/img/excel.png') no-repeat left;text-align: right;width: 82px;height: 29px;font-family: Arial;
}

.cancelarbutton {
    background: #F2F2F2 url('resources/img/close.png') no-repeat left;text-align: right;width: 82px;height: 29px;font-family: Arial;
}

.salirbutton {
    background: #F2F2F2 url('resources/img/quit.png') no-repeat left;text-align: right;width: 65px;height: 29px;font-family: Arial;
}
 
 </style>
<head >
 <h:head>
 <title>Pricing - Romi Pack</title>
 <link href="resources/css/styles.css" type="text/css" rel="stylesheet" />
	<div>
    	<ui:insert name="head" />
      	<table width="100%" class="styleHeader">
  		<tr>
    		<td><h:graphicImage value="resources/img/romipack.jpg" /></td>
    		<td><h:graphicImage value="resources/img/logotipo.png" /></td>
			<td>
				<h:form id= "logoutform" rendered="#{appUser.userLogin != null}">
					<h:panelGrid columns="2">
						<h:outputText value="Usuario: " style="FONT-WEIGHT: bold;"/>
						<h:outputText value="#{appUser.userLogin.userName}" />					
					</h:panelGrid>				
					
					 <h:commandLink action="home.jsf" actionListener="#{appUser.logoutUser}" styleClass="commandLink">
					 		<h:commandButton value = "Salir" styleClass="salirbutton" >
				 	 		   <f:ajax event= "click" render="logoutform" immediate="true" execute="@all"></f:ajax>
				 	 		</h:commandButton>
    		    	</h:commandLink>
    		    </h:form>
			</td>  		
  		</tr>
 	</table>
  </div>
  </h:head>
</head>
 <body>
  <div id="menu_" style="float:left; width:10%; height: 450px;">
  <h:form id = "groupform" rendered="#{appUser.userLogin != null}">
    <h:panelGrid columns="1" cellspacing="2" cellpadding="0" bgcolor="#191970" border="0" style="text-align:left;" >
  		<rich:dropDownMenu label="Configuracion" jointPoint="topRight" submitMode="none" direction="bottomRight" style ="color: white;font : bold;" >
  				<rich:menuItem label="Articulos" action="admin-articulo.jsf" />
  				<rich:menuItem label="Bases de distribucion" action="admin-criterios.jsf" />
  				<rich:menuItem label="Centro de costos" action="admin-cc.jsf" />
  				<rich:menuItem label="Criterios" action="admin-cuentas.jsf" />
  				<rich:menuItem label="Descuentos" action="descuentos-linea.jsf"/>
  				<rich:menuItem label="Formatos" action="admin-formato.jsf" />
  				<rich:menuItem label="Lineas" action="admin-linea.jsf" />
  				<rich:menuItem label="Maquinas" action="admin-maquina.jsf" />
  				<rich:menuItem label="Monedas" action="admin-monedas.jsf" />
  				<rich:menuItem label="Opcionales" action="opcionales_configuracion.jsf"/>
  				<rich:menuItem label="Perfiles" action="admin-profiles.jsf" />
  				<rich:menuItem label="Rentabilidad por linea" action="admin-rentabilidad-linea.jsf" />
  				<rich:menuItem label="Usuarios" action="admin-users.jsf" />
  		</rich:dropDownMenu>
  		<rich:dropDownMenu label="Carga de Datos" jointPoint="topRight" submitMode="none" direction="bottomRight" style ="color: white;font : bold;">
  				<rich:menuItem label="Importar archivos" action="import-files.jsf" />
  				<rich:menuItem label="Costos de MP" action="admin-mp.jsf" />
  				<rich:menuItem label="Gastos por cuenta" action="admin-cuentas-mes.jsf" />
  				<rich:menuItem label="Salarios" action="admin-salarios.jsf" />
  		</rich:dropDownMenu>
  		<rich:dropDownMenu label="Costos y Precios" jointPoint="topRight" submitMode="none" direction="bottomRight" style ="color: white;font : bold;">
  				<rich:menuItem label="Artículos" action="calculo-costos.jsf"/>
  				<rich:menuItem label="Opcionales" action="opcionales.jsf"/>
  		</rich:dropDownMenu>
  			
  </h:panelGrid>
 
 </h:form>
 </div>
 
 	 <div >
		<ui:insert name="login"></ui:insert>  
	</div>
	<div class="content_div">
		<ui:insert name="actualizelogin"></ui:insert>  
	</div>
	<div class="content_div">		
		<ui:insert name ="abmUser"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="editUser"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="abmProfile"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="abmCC"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="abmMatPrim"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="abmLinea"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="editLinea"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="abmFormato"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="abmMaquina"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="unitcostmachine"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="actualizarCosto"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="abmCriterios"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="abmArticulo"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="editArticulo"></ui:insert> 
	</div>
	<div class="content_div">		
		<ui:insert name ="editConsumoArticulo"></ui:insert> 
	</div>
	<div class="content_div">
		<ui:insert name = "actualizarConsumoMaquina"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "cuentasabm"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "distribucioncc"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "calculocosto"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "aperturamp"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "aperturacostos"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "aperturasalarios"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "cuentasmesabm"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "manodeobraabm"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "importfiles"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "abmMonedas"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "rentabilidad"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "editPerfil"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "descuentos"></ui:insert>
	</div>
	<div class="content_div">
		<ui:insert name = "opcionales"></ui:insert>
	</div>
	<div class = "footer" >
  	 <center>
		2011 &copy; Romi Pack - Aplicación web desarrollada por <a href="http://www.candoit.com.ar">Candoit</a>
 	</center>
 	</div>	
			
 </body>
 
</f:view>
</html>
